import uvicorn
from fastapi import FastAPI
from app.apis import RegisterRoutersList
from app.config import get_settings

import logging


logger = logging.getLogger(__name__)

fastApis = FastAPI()


for item in RegisterRoutersList:
    fastApis.include_router(item.router)


if __name__ == "__main__":
    logger.info("Starting server...")
    logger.info(f"Starting server on port:{get_settings} ")
    uvicorn.run(fastApis, host="0.0.0.0", port=get_settings.port)
